﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace first_practice
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请选择你要的是鱼还是狗");
            string animal = Console.ReadLine(); 
            if (animal=="狗")
            {
                Console.WriteLine("狗的颜色");
                Console.ReadLine();
                Console.WriteLine("给狗取个名字吧");
                Console.ReadLine();
                Animal dog = new Dog();
                dog.behavior();
            
            
            }

            if (animal=="鱼")
            {
                Console.WriteLine("鱼的颜色");
                Console.ReadLine();
                Console.WriteLine("给鱼取个名字吧");
                Console.ReadLine();
                Animal fish = new Fish();
                fish.behavior();


            }
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            /*
            Animal fish= new Fish();

            Console.WriteLine("鱼的名字");
            fish.Name = Console.ReadLine();

            Console.WriteLine("鱼的颜色");
            fish.Color = Console.ReadLine();

            fish.behavior();

            Animal dog= new Dog();

            Console.WriteLine("狗的名字");
            dog.Name = Console.ReadLine();

            Console.WriteLine("狗的颜色");
            dog.Color = Console.ReadLine();

            dog.behavior();
           */
        }
    }
}
